/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.staf.SnmpTopologyExplorer;

import ru.staf.SnmpTopologyExplorer.GUI.MainFrame;
import ru.staf.SnmpTopologyExplorer.V2.Switch;
import ru.staf.SnmpTopologyExplorer.V2.TopologyModeler;

/**
 *
 * @author aezhov
 */
public class Explorer {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
        // TODO code application logic here
        new Explorer().go();
        //MainFrame mainFrame = new MainFrame();
        //mainFrame.setVisible(true);
    }

    public void go() throws Exception {
        String dir = System.getProperty("config.file");
        if (dir == null) {
            System.out.println("No parameter config.file defined");
            throw new ConfigurationException(Errors.AGUMENT_NO_CONFIG_FILE);
        }
        ConfigParser config = new ConfigParser(dir);
    }
}
